package com.school.repository;

import com.school.entity.RealisticRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RealisticRecordRepository extends JpaRepository<RealisticRecord,Integer>, JpaSpecificationExecutor<RealisticRecord> {
    List<RealisticRecord> findRealisticRecordsByAuditStatus(int auditStatus);
    void deleteRealisticRecordsByIdIn(List<Integer> idList);
    List<RealisticRecord> findRealisticRecordsByIdIn(List<Integer> idList);
    List<RealisticRecord> findAllBySchoolIdAndClassId(Integer schoolId, Integer classId);
}
